<?php if ($object instanceof BolaoNews) : ?>

  <h1><?php echo $object->getSummary() ?></h1>
  <?php echo $object->getDescription() ?>

<?php elseif ($object instanceof BolaoEvent) : ?>

  <h1><?php echo $object->getDescription() ?></h1>
  <b>Categoria:</b>&nbsp;<?php echo $object->getBolaoCategory()->getName() ?>
  <?php
    if ($object->hasBolaoSubcategory())
      echo ' - '.$object->getBolaoSubcategory()->getName();
  ?>
  <br />
  <b>Local:</b>&nbsp;<?php echo $object->getLocation() ?>
  <br />
  <b>In&iacute;cio:</b>&nbsp;
  <?php
    echo $object->getStartDate('d/m/Y');
    if ($object->getStartTime('Hi') > 0)
      echo ' '.$object->getStartTime('H:i');
  ?>
  <?php if ($object->hasEndDate()) : ?>
  <br />
  <b>T&eacute;rmino:</b>
    <?php
      echo $object->getEndDate('d/m/Y');
      if ($object->getEndTime('Hi') > 0)
        echo ' '.$object->getEndTime('H:i');
    ?>
  <?php endif; ?>

<?php elseif ($object instanceof BolaoAlbum) : ?>
  
  <?php
    use_helper('Picasa');
    $album = loadAlbum($object->getPicasaId())
  ?>
  <p>Novo &aacute;lbum de fotos no site!</p>
  <p style="text-align: center;">
    <a href="<?php echo url_for('album/show?id='.$object->getId(), true) ?>">
      <img src="<?php echo $album->getIcon() ?>" /><br/><?php echo $album->getTitle() ?><br/>Fotos: <?php echo $album->getNumphotos() ?>
    </a>
  </p><br/>

<?php elseif ($object instanceof BolaoTournament) : ?>

<h1>Novos resultados no site</h1>
<p>Resultados atualizados para o <?php echo $object->getName() ?> (<?php echo $object->getBolaoSubcategory() ?>). Para verificar as atualiza&ccedil;&otilde;es acesse o site clicando <a href="<?php echo url_for('@show_tournament_by_name?year='.$object->getYear().'&name_slug='.$object->getNameSlug().'&category_slug='.$object->getBolaoSubcategory()->getCategory()->getNameSlug().'&subcategory_slug='.$object->getBolaoSubcategory()->getNameSlug(), true) ?>">aqui</a>.</p>

<?php endif; ?>

    

<?php $homepage = url_for('@homepage', true) ?>
<p>Para mais informa&ccedil;&otilde;es acesse o nosso site <a href="<?php echo $homepage ?>"><?php echo $homepage ?></a>.</p>

<hr/>

<p>Esta mensagem foi gerada automaticamente pelo site do grupo de bol&atilde;o da
AABB.</p>
